/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx.hotel;

/**
 * <p>Project: jse2204 - Test
 * <p>Powered by webrx On 2022-09-20 16:33:57
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Test {
    public static void main(String[] args) {
        //30 黑 31 红 32 绿  33 黄
        System.out.printf("\033[30mhello\033[0m%n");
        System.out.printf("\033[31mhello\033[0m%n");
        System.out.printf("\033[32mhello\033[0m%n");
        System.out.printf("\033[33mhello\033[0m%n");
        System.out.printf("\033[34mhello\033[0m%n");
        System.out.printf("\033[35mhello\033[0m%n");
        System.out.printf("\033[36mhello\033[0m%n");
        System.out.printf("\033[37mhello\033[0m%n");
        System.out.printf("\033[38mhello\033[0m%n");
        //System.out.printf("\033[39mhello\033[0m%n");
        System.out.println();
        System.out.println();

        //40 黑            48透明无色
        System.out.printf("\033[40m\033[32mhello\033[0m%n");
        System.out.printf("\033[41mhello\033[0m%n");
        System.out.printf("\033[42m\033[30mhello\033[0m%n");
        System.out.printf("\033[43mhello\033[0m%n");
        System.out.printf("\033[44mhello\033[0m%n");
        System.out.printf("\033[45mhello\033[0m%n");
        System.out.printf("\033[46mhello\033[0m%n");
        System.out.printf("\033[47mhello\033[0m%n");
        System.out.printf("\033[48mhello\033[0m%n");
    }

    public static void out(String str){
        System.out.printf("\033[41m%s\033[0m",str);
    }

    public static void print(String str){
        System.out.printf("\033[41m%s\033[0m",str);
    }
}
